package com.mingweicai.intergration.springaop.demo2;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@EnableAspectJAutoProxy(proxyTargetClass = true)
public class BeanConfiguration {

  @Bean
  public BusinessService createBusinessService(){
    return new BusinessService();
  }

  @Bean
  public FourAdviceAspect createLogAspects(){
    return new FourAdviceAspect();
  }
}
